<link href="__CDN__/assets/addons/qingdongams/css/index.css?v={$Think.config.site.version}" rel="stylesheet">

<style>
.popover{
    width:300px;
}
</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#first"  class="first" data-toggle="tab">全部</a></li>
            <li><a href="#second" class="second" data-toggle="tab">我负责的</a></li>
            <li><a href="#third" class="third" data-toggle="tab">下属负责的</a></li>
            <li><a href="#four" data-toggle="tab">今日待跟进</a></li>
            <li><a href="#five" data-toggle="tab">今日已跟进</a></li>
<!--            <li><a href="#six" data-toggle="tab">从未跟进的</a></li>-->
        </ul>
    </div>
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="first">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
<!--                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>-->
<!--                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>-->
<!--                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"-->
<!--                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>-->
<!--                        {if condition="$auths eq 1"}-->
<!--                        <a class="btn btn-danger btn-change btn-delifo"><i class="fa fa-mail-reply"></i> 批量删除</a>-->
<!--                        {/if}-->
                        <small style="line-height:34px;" >
                            <span style="padding:0px;"></span>
                            <a href="javascript:;" class="qd_popover"   data-toggle="popover" data-placement="right" data-trigger="hover"   data-content="客户数据权限指员工登录账户看到的数据信息,分别为本人、本人及下属、本部门、仅下属部门、本部门及下属部门、全部。<br>
本人：只能看自己的客户信息;<br>
本人及下属：可以看本人及下属的客户信息;<br>
本部门：可以看本部门的所有客户信息;<br>
仅下属部门：只可以看下属的客户信息;<br>
本部门及下属部门：可以看本部门和下属部门全部的客户信息;<br>
全部：相当于超级管理员，可以看全部客户信息.<br>在【员工管理】-【角色管理】中配置对应数据权限" data-original-title="" title=""><i class="fa fa-question-circle" style="font-size:16px;"></i>看不到客户数据?</a>
                        </small>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="second">
                <div class="widget-body no-padding">
                    <div id="toolbar1" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>
                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>
                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"
                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>

                    </div>
                    <table id="table1" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="third">
                <div class="widget-body no-padding">
                    <div id="toolbar2" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>
                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>
                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"
                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>

                    </div>
                    <table id="table2" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="four">
                <div class="widget-body no-padding">
                    <div id="toolbar3" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>
                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>
                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"
                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>

                    </div>
                    <table id="table3" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="five">
                <div class="widget-body no-padding">
                    <div id="toolbar4" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>
                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>
                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"
                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>

                    </div>
                    <table id="table4" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>
            <div class="tab-pane fade" id="six">
                <div class="widget-body no-padding">
                    <div id="toolbar5" class="toolbar">
                        {:build_toolbar('refresh,add')}
                        <a class="btn btn-warning btn-change btn-imports {:$auth->check('qingdongams/customer/customer/import')?'':'hide'}"  data-params="action=start"  href="javascript:;"><i class="fa fa-upload dz-message"></i> 导入</a>
                        <a class="btn btn-success btn-export {:$auth->check('qingdongams/customer/customer/export')?'':'hide'}" data-multiple="false" initialized="true" href="javascript:;"><i class="fa fa-download dz-message"></i> 导出</a>
                        <a class="btn btn-primary btn-change btn-transfer {:$auth->check('qingdongams/customer/customer/batch_change')?'':'hide'}"><i class="fa fa-mail-reply"></i> 批量转移</a>
                        <a class="btn btn-danger btn-send-email {:$auth->check('qingdongams/general/email/batch_send_email')?'':'hide'}" data-url="qingdongams/general/email/batch_send_email" data-types="customer" data-title="批量发送邮件" ><i class="fa fa-envelope-square"></i> 批量发送邮件</a>
                        <a class="btn btn-info  btn-send-sms {:$auth->check('qingdongams/general/sms/batch_send_sms')?'':'hide'}"
                           data-url="qingdongams/general/sms/batch_send_sms" data-types="customer" data-title="批量发送短信" ><i class="fa fa-telegram"></i> 批量发送短信</a>

                    </div>
                    <table id="table5" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>
            </div>



        </div>
    </div>
</div>
